gdk: Mark window surfaces as dirty before reading from them
authorBenjamin Otte <otte@redhat.com>
Fri, 18 Sep 2015 00:04:10 +0000 (02:04 +0200)
committerBenjamin Otte <otte@redhat.com>
Fri, 18 Sep 2015 00:06:01 +0000 (02:06 +0200)
commit15d043c5d239facb99fa776c100f520c350562fb
tree742a5adf2b9c875f2ebc5f5463bee346498feba4
parent3ac8a120fecfb3685bdcbe8718ed4dd22f85dfb3
gdk: Mark window surfaces as dirty before reading from them

We do not know what happened to this surface outside of GDK.
Especially for foreign windows, they will have been modified
by external applications.

So be on the safe side and tell Cairo to clear all its caches.

https://bugzilla.gnome.org/show_bug.cgi?id=754952
gdk/gdkpixbuf-drawable.c